60. ISE module

Note

The below information is extensively based in information taken from the PowerShell® Notes for Professionals book. I plan to extend this information based on my day to day usage of the language.

Windows PowerShell Integrated Scripting Environment (ISE) is a host application that enables you to write, run, and test scripts and modules in a graphical and intuitive environment. Key features in Windows PowerShell ISE include syntax-coloring, tab completion, Intellisense, visual debugging, Unicode compliance, and context-sensitive Help, and provide a rich scripting experience.

60.1: Test Scripts

The simple, yet powerful use of the ISE is e.g. writing code in the top (with intuitive syntax coloring) and run the code by simply marking it and hitting the F8 key.

1
2
3
4
5
6
function Get-Sum
{
  foreach ($i in $Input)
  {$Sum += $i}
  $Sum
}
1
1 .. 10 | Get-Sum
1
2
#output
55